x = 1
def a():
    x = 8
    def b():
        nonlocal x
        x += 1
        print(x)
    b()
b = a()
print(x)
